package com.dcm.user.mapper;


import com.dcm.user.dto.UserDto;
import com.dcm.user.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author:pengrongsheng
 */
public interface UserMapper {
    /**
     * 查询所有
     *
     * @return
     */
    List<UserEntity> findAll();

    /**
     * 添加 注册
     *
     * @param user
     * @return
     */
    void register(UserEntity user);

    /**
     * 登录
     *
     * @param user
     * @return
     */
    UserEntity login(UserDto user);

}
